package com.mj;

import com.mj.queue.PriorityQueue;

public class Main {
    public static void main(String[] args) {
        PriorityQueue<Person> queue = new PriorityQueue<>();
        queue.enQueue(new Person("jack", 2));
        queue.enQueue(new Person("rose", 10));
        queue.enQueue(new Person("jake", 5));
        queue.enQueue(new Person("jame", 15));
        //看病的优先级
        while (!queue.isEmpty()){
            System.out.println(queue.deQueue());
        }

        new java.util.PriorityQueue<>();


    }
}
